HipTilemap

Undocumented in source.

Constructors

this
this(uint width, uint height, uint tileWidth, uint tileHeight)
Undocumented in source.
this
this()
Undocumented in source.

Members

Functions

addTileset
void addTileset(IHipTileset tileset)
Undocumented in source. Be warned that the author may not have intended to support it.
color
HipColor color()
Undocumented in source. Be warned that the author may not have intended to support it.
getTSXPath
string getTSXPath(string tsxName)
Undocumented in source. Be warned that the author may not have intended to support it.
getTilesetForID
IHipTileset getTilesetForID(ushort id)
Undocumented in source. Be warned that the author may not have intended to support it.
height
uint height()
Undocumented in source. Be warned that the author may not have intended to support it.
isInfinite
bool isInfinite()
Undocumented in source. Be warned that the author may not have intended to support it.
isReady
bool isReady()
Undocumented in source. Be warned that the author may not have intended to support it.
layers
HipTileLayer[string] layers()
Undocumented in source. Be warned that the author may not have intended to support it.
loadImages
void loadImages(void delegate() onSuccess, void delegate() onFailure)

Those arguments are actually synchronous on all platforms. This is to simulate JS API.

loadTextures
bool loadTextures()
Undocumented in source. Be warned that the author may not have intended to support it.
onDispose
void onDispose()
Undocumented in source. Be warned that the author may not have intended to support it.
onFinishLoading
void onFinishLoading()
Undocumented in source. Be warned that the author may not have intended to support it.
orientation
string orientation()
Undocumented in source. Be warned that the author may not have intended to support it.
path
string path()

Used for rendering order

renderorder
string renderorder()
Undocumented in source. Be warned that the author may not have intended to support it.
rotation
float rotation()
Undocumented in source. Be warned that the author may not have intended to support it.
scale
float scale()
Undocumented in source. Be warned that the author may not have intended to support it.
scale
float scale(float sc)
Undocumented in source. Be warned that the author may not have intended to support it.
scaleX
float scaleX()
Undocumented in source. Be warned that the author may not have intended to support it.
scaleY
float scaleY()
Undocumented in source. Be warned that the author may not have intended to support it.
setTileSize
void setTileSize(uint tileWidth, uint tileHeight)
Undocumented in source. Be warned that the author may not have intended to support it.
tileHeight
uint tileHeight()
Undocumented in source. Be warned that the author may not have intended to support it.
tileWidth
uint tileWidth()
Undocumented in source. Be warned that the author may not have intended to support it.
tiled_version
string tiled_version()
Undocumented in source. Be warned that the author may not have intended to support it.
width
uint width()
Undocumented in source. Be warned that the author may not have intended to support it.
x
int x()
Undocumented in source. Be warned that the author may not have intended to support it.
y
int y()
Undocumented in source. Be warned that the author may not have intended to support it.

Static functions

readTiledJSON
HipTilemap readTiledJSON(string mapPath, ubyte[] tiledData, void delegate(HipTilemap) onSuccess, void delegate() onError)
Undocumented in source. Be warned that the author may not have intended to support it.
readTiledJSON
void readTiledJSON(string tiledPath, void delegate(HipTilemap) onSuccess, void delegate() onError)
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

_color
HipColor _color;
_height
uint _height;
Undocumented in source.
_isInfinite
bool _isInfinite;
Undocumented in source.
_layers
HipTileLayer[string] _layers;
Undocumented in source.
_orientation
string _orientation;
Undocumented in source.
_path
string _path;
Undocumented in source.
_renderOrder
string _renderOrder;
Undocumented in source.
_rotation
float _rotation;
Undocumented in source.
_scaleX
float _scaleX;
_scaleY
float _scaleY;
_tileHeight
uint _tileHeight;
Undocumented in source.
_tileWidth
uint _tileWidth;
Undocumented in source.
_tiledVersion
string _tiledVersion;
Undocumented in source.
_width
uint _width;
Undocumented in source.
_x
int _x;
_y
int _y;
Undocumented in source.
layersArray
HipTileLayer[] layersArray;
Undocumented in source.
tilesets
HipTilesetImpl[] tilesets;
Undocumented in source.

Inherited Members

From HipAsset

_name
string _name;

Use it to insert into an asset pool, alias

_assetID
uint _assetID;

Currently not in use

_typeID
uint _typeID;

Usage inside asset manager

startLoadingTimestamp
float startLoadingTimestamp;

When it started loading

loadTime
float loadTime;

How much time it took to load, in millis

name
string name()
Undocumented in source. Be warned that the author may not have intended to support it.
name
string name(string newName)
Undocumented in source. Be warned that the author may not have intended to support it.
assetID
uint assetID()
Undocumented in source. Be warned that the author may not have intended to support it.
typeID
uint typeID()
Undocumented in source. Be warned that the author may not have intended to support it.
onFinishLoading
void onFinishLoading()

Action for when the asset finishes loading Proabably be executed on the main thread

startLoading
void startLoading()
Undocumented in source. Be warned that the author may not have intended to support it.
finishLoading
void finishLoading()
Undocumented in source. Be warned that the author may not have intended to support it.
dispose
void dispose()

Currently, no AssetID recycle is in mind. It will only invalidate the asset for disposing it on an appropriate time

onDispose
void onDispose()

Use it to clear the engine.

Meta